package com.chenxi.client;

import com.chenxi.model.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(serviceId = "user-center")
public interface IUserCenterClient {
    @RequestMapping(value = "/userApi/list",method = RequestMethod.GET)
    List<User> find();

    @RequestMapping(value = "/userApi/test",method = RequestMethod.GET)
    String getStr();

    @RequestMapping(value = "/revoke_token",method = RequestMethod.GET)
    String revokeToken();
}
